package com.xoa.service.knowledge;

import com.xoa.model.knowledge.KnowledgeCustomer;
import com.xoa.model.knowledge.KnowledgeDocfile;
import com.xoa.model.knowledge.KnowledgeSubscribe;
import com.xoa.util.LimsJson;
import com.xoa.util.ToJson;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface SubscribeService {

    LimsJson insertSelective(HttpServletRequest request,KnowledgeSubscribe record);

    LimsJson deleteByPrimaryKey(Integer subscribeId);

    LimsJson update(KnowledgeSubscribe record);

    LimsJson selectByCustomerId(Integer customerId);

    LimsJson selectByList(HttpServletRequest request);

    LimsJson getSubscription();

    LimsJson search(HttpServletRequest request,KnowledgeDocfile knowledgeDocfile,Integer page,Integer limit);

    LimsJson getOldByFildAndCustomer(HttpServletRequest request ,Integer customerId,Integer fileId,Integer page,Integer limit);

    LimsJson getFileExport (HttpServletRequest request, HttpServletResponse response,KnowledgeDocfile knowledgeDocfile);

    ToJson getCustomerAndFile(HttpServletRequest request,KnowledgeCustomer customer, Integer page, Integer limit,String isSysCode);
}
